"use strict";
const common_vendor = require("../../common/vendor.js");
const api_personal = require("../../api/personal.js");
require("../../utils/request.js");
const _sfc_main = {
  __name: "index",
  setup(__props) {
    const historyList = common_vendor.ref([]);
    const getplayHistory = async () => {
      try {
        let result = await api_personal.personalApi.reqplayHistory();
        if (result.code === 200) {
          historyList.value = result.weekData;
        }
      } catch (error) {
        console.log(error);
      }
    };
    common_vendor.onLoad(() => {
      getplayHistory();
    });
    return (_ctx, _cache) => {
      return common_vendor.e({
        a: historyList.value.length
      }, historyList.value.length ? {
        b: common_vendor.f(historyList.value, (item, index, i0) => {
          return {
            a: item.song.al.picUrl,
            b: index
          };
        })
      } : {});
    };
  }
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-46fe8b1b"], ["__file", "D:/Desktop/cloud_yy/src/pages/homepage/index.vue"]]);
wx.createPage(MiniProgramPage);
